import {deleted, get, post, put} from "@/api/client";

/**
 * 查询分页列表
 * @param  data
 */
export const getNconTypePage = (data) => {
    return post(`/nconType/page`, data);
};

/**
 * 修改NconType
 * @param  NconType
 */
export const updateNconType = (data) => {
    return post("/nconType/updateById", data);
};

/**
 * 添加信息
 * @param  NconType
 */
export const addNconType = (data) => {
    return post("/nconType/save", data);
};
/**
 * 删除
 * @param  id
 */
export const deletedNconType = (data) => {
    return deleted("/nconType/delete", data);
};

/**
 * 根据id查询
 * @param  id
 */
export const getNconTypeById = (id) => {
    return get(`/nconType/detail`, {id});
};

/**
 * 查询全部列表
 */
export const getNconTypeList = () => {
    return get(`/nconType/list`);
};
